<?php

require_once($AppUI->getModuleClass('projects'));// reference
require_once($AppUI->getMasterDataClass('mdtype'));

$projectId = dPgetParam($_GET, 'project_id', 0);
// Load Object Status

$objMD = new CMdType();
$itemTypeList = getTypeList('ItemType1');
$objMD = new CProject();
$q= new DBQuery();
$q->addTable('projects');
$q->addQuery('project_id, project_name');
$projectList = $q->loadHashList();
$projectList = arrayMerge(array('0'=>"" . $AppUI->_(''). ""), $projectList);

?>
<form name="reportFrm" action="?m=reports&a= do_r_settlement&suppressHeaders=1" method="post">

<input type="hidden" name="offset">

<table cellspacing="0" cellpadding="4" border="0" width="100%" class="infopanel">
<tr>
	<td>
		<input class="button" type="submit" name="searchAction" value="<?=$AppUI->_('Export to excel');?>"/>
		<input class="button" type="reset" name="resetAction" value="<?=$AppUI->_('reset');?>"/>
	</td>
</tr>
</table>
<table cellspacing="0" cellpadding="4" border="0" width="100%" class="subinfopanel">
<tr>
	<td align="right"> <?=$AppUI->_('Reference')?></td>
	<td width="">
		<?= arraySelect($projectList, 'project_id', ' id="project_id" size="1" class="text" style="width: 135px;"', $projectId, true)?>
	</td>
	<td align="right"><?=$AppUI->_('Item Type')?></td>
	<td><?= arraySelect($itemTypeList, 'item_type', ' id="item_type" size="1" class="text" style="width: 135px;"', '', true)?></td>
</tr>
</table>
</form>

